package cn.edu.hunau.dao;


import cn.edu.hunau.exception.DaoException;
import cn.edu.hunau.pojo.Address;
import cn.edu.hunau.pojo.Order;

import java.util.List;

/**
 * @Author 苏佳
 * @Date 2022 11 13 21 30
 **/
public interface OrderDao {
    public void insert(Order order)throws DaoException;

    public void updateAid(String oid, int aid)throws DaoException;

    public void updateOstate(String oid)throws DaoException;

    /**
     * 根据uid查询所有的订单信息
     * @param uid
     * @return
     * @throws DaoException
     */
    public List<Order> queryByUid(int uid)throws DaoException;

    void deleteOrderByOid(String oid)throws DaoException;

    int countByOstate(int uid,String ostate)throws DaoException;
}
